import json
from config import BASE_DIR
def build_data():
    with open(BASE_DIR+'/data/add.json', encoding='utf-8') as f:
        data = json.load(f)
    return data

def build_data1():
    with open(BASE_DIR+'/data/login.json', encoding='utf-8') as f:
        data = json.load(f)
    new_list=[]
    for d in data:
        d.pop('desc')
        new_list.append(tuple(d.values()))
    return new_list
    print(new_list)

if __name__ == '__main__':
    print(build_data1())